using ColorFillGame.Domain.ValueObjects;

namespace ColorFillGame.Domain.Events;

public class PaintActionPerformedEvent : DomainEvent
{
    public Guid GameId { get; private set; }
    public Guid PlayerId { get; private set; }
    public Position Position { get; private set; }
    public PlayerColor Color { get; private set; }

    public PaintActionPerformedEvent(Guid gameId, Guid playerId, Position position, PlayerColor color)
    {
        GameId = gameId;
        PlayerId = playerId;
        Position = position;
        Color = color;
        OccurredOn = DateTime.UtcNow;
    }
}